import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class webPage extends StatelessWidget {
  final String title;
  final String url;
  const webPage({Key key, this.title='详情',@required this.url}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: WebView(initialUrl: url,javascriptMode: JavascriptMode.unrestricted)
    );
  }
}